<?php 
session_start();
// if (!isset($_SESSION['name'])) {
// 	header('location:/home/public/denglu.php')
// }

include_once($_SERVER['DOCUMENT_ROOT'].'/public/func.php');
$config=include_once($_SERVER['DOCUMENT_ROOT'].'/public/config.php');

 ?>
<html>
<head>
<meta charset="utf-8">
<title>个人博客模板（寻梦）</title>
<meta name="keywords" content="个人博客模板,博客模板" />
<meta name="description" content="寻梦主题的个人博客模板，优雅、稳重、大气,低调。" />
<link href="/home/public/css/base.css" rel="stylesheet">
<link href="/home/public/css/index.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/public/css/bootstrap.min.css"/>
<script src="/public/js/jquery.min.js"></script>
<script src="/public/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/baidubianjiqi/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/baidubianjiqi/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/public/baidubianjiqi/lang/zh-cn/zh-cn.js"></script>
<!--[if lt IE 9]>
<script src="js/modernizr.js"></script>
<![endif]-->
</head>
<body>
<header>
  <div id="logo"><a href="/"></a></div>
  <nav class="topnav" id="topnav">
  <a href="/home/index.php"><span>首页</span><span class="en">Protal</span></a>
  <a href="/home/about.php"><span>关于我</span><span class="en">About</span></a>
  <a href="/home/article.php"><span>我的文章</span><span class="en">Life</span></a>
  <a href="/home/message/message.php"><span>留言版</span><span class="en">Doing</span></a>
<?php 
if (isset($_SESSION['name'])) {
  echo '<a href="/home/public/zhuche.php"><span>欢迎会员：'.$_SESSION['name'].'</span><span class="en">Doing</span></a>
  <a href="/home/public/zhuxiao.php"><span>注销</span><span class="en">Doing</span></a>';

}else{
  echo '<a href="/home/public/denglu.php"><span>登录</span><span class="en">Doing</span></a>
  <a href="/home/public/zhuche.php"><span>注册</span><span class="en">Doing</span></a>';
}
 ?>

  </nav>
  </nav>
</header>